﻿@model PagedList.IPagedList<DealKhuyenMaiV2.com.Models.Product>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Admin/Shared/_AdminLayout.cshtml";
}
<style type="text/css">
    .web_dialog
    {
        position: fixed;
        top: 50%;
        left: 50%;
    }
</style>
<div class="breadcrumb">
        @Html.ActionLink("Trang Chủ", "Index", "Admin")
    </div>
<div class="box">
    <div class="left">
    </div>
    <div class="right">
    </div>
    <div class="heading">
        <h1 style="background-image: url(../../ContentAdmin/DefaultThemes/image/home.png);">
            Quản trị sản phẩm</h1>
    </div>
    <div class="content">
       
        @using (Ajax.BeginForm("Search", "ProductManager", new { Display = ViewBag.Display as string }, new AjaxOptions
                                                                         {
                                                                             HttpMethod = "POST",
                                                                             UpdateTargetId = "ListProduct",
                                                                             InsertionMode = InsertionMode.Replace,
                                                                             LoadingElementId = "loadingImage"
                                                                         }))
        {
            @Html.TextBox("KeyWord")
            <input type="submit" value="Search" />
            
                  
          
        }
        <div id="loadingImage" style="display: none">
            <img src="../../Content/DefaultThemes/Images/loading.gif" class="web_dialog" alt="loading" />
        </div>
        <div id="ListProduct">
            @{ Html.RenderPartial("_ListProduct", Model);}
        </div>
    </div>
</div>
